﻿namespace PhotobucketNet
{
    using System;

    internal class PhotobucketImageSize
    {
        public static ImageSize CreateFromString(string imageSize)
        {
            if (imageSize == "100")
            {
                return ImageSize.S100x75;
            }
            if (imageSize == "160")
            {
                return ImageSize.S160x120;
            }
            if (imageSize == "320")
            {
                return ImageSize.S320x240;
            }
            if (imageSize == "640")
            {
                return ImageSize.S640x480;
            }
            if (imageSize == "800")
            {
                return ImageSize.S800x600;
            }
            if (imageSize == "1024")
            {
                return ImageSize.S1024x768;
            }
            if (imageSize == "1280")
            {
                return ImageSize.S1280x960;
            }
            if (imageSize == "1600")
            {
                return ImageSize.S1600x1200;
            }
            if (imageSize == "2048")
            {
                return ImageSize.S1048x1536;
            }
            if (imageSize == "2240")
            {
                return ImageSize.S2240x1680;
            }
            return ImageSize.UNKNOWN;
        }
    }
}

